<?php
class ReportGetAction extends AdminAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'tpl';
		$this->layout = 'admin';
	}

	public function execute()
	{
		$this->data['hasLogin'] = 0;
		
		//从cookie中取seessionKey，如果没有，需要重新登录
		$sessionKey = C('LtCookie')->getCookie('sessionkey');
		if(!empty($sessionKey))
		{
			$this->data['hasLogin'] = 1;
		}
		
		//日期默认是昨天
		$du = C('DateUtil');
		$this->data['startDate'] = date('Y-m-d',$du->dateAdd('d','-1',time()));
		$this->data['endDate'] = date('Y-m-d');
		
		$this->data['menu']		= 'default';
		$this->data['submenu']	= 'default_reportget';
	}
}
